package com.ruoyi.swimming.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商城商品对象 mall_goods
 *
 * @author ruoyi
 * @date 2021-07-17
 */
public class MallGoods extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String productName;

    /**
     * 商城类目id
     */
    @Excel(name = "商城类目id")
    private Long categoryId;

    /**
     * 商城类目名称
     */
    @Excel(name = "商城类目名称")
    private String kindName;

    /**
     * 商品介绍
     */
    @Excel(name = "商品介绍")
    private String introduction;

    /**
     * 封面图url
     */
    @Excel(name = "封面图url")
    private String coverPicUrl;

    /**
     * 轮播图url
     */
    @Excel(name = "轮播图url")
    private String carouselPicUrl;

    /**
     * 商品详情
     */
    @Excel(name = "商品详情")
    private String desc;

    /**
     * 虚拟销量
     */
    @Excel(name = "虚拟销量")
    private Long vrSales;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long sorting;

    /**
     * 商品上架
     */
    @Excel(name = "商品上架")
    private Integer isOnshelf;

    /**
     * 是否新品
     */
    @Excel(name = "是否新品")
    private Integer isNewproduct;

    /**
     * 是否热销
     */
    @Excel(name = "是否热销")
    private Integer isHotsell;

    /**
     * 是否特惠
     */
    @Excel(name = "是否特惠")
    private Integer isDiscount;

    /**
     * 是否删除
     */
    @Excel(name = "是否删除")
    @TableLogic
    private Integer isDel;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductName() {
        return productName;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getKindName() {
        return kindName;
    }

    public void setKindName(String kindName) {
        this.kindName = kindName;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setCoverPicUrl(String coverPicUrl) {
        this.coverPicUrl = coverPicUrl;
    }

    public String getCoverPicUrl() {
        return coverPicUrl;
    }

    public void setCarouselPicUrl(String carouselPicUrl) {
        this.carouselPicUrl = carouselPicUrl;
    }

    public String getCarouselPicUrl() {
        return carouselPicUrl;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setVrSales(Long vrSales) {
        this.vrSales = vrSales;
    }

    public Long getVrSales() {
        return vrSales;
    }

    public void setSorting(Long sorting) {
        this.sorting = sorting;
    }

    public Long getSorting() {
        return sorting;
    }

    public void setIsOnshelf(Integer isOnshelf) {
        this.isOnshelf = isOnshelf;
    }

    public Integer getIsOnshelf() {
        return isOnshelf;
    }

    public void setIsNewproduct(Integer isNewproduct) {
        this.isNewproduct = isNewproduct;
    }

    public Integer getIsNewproduct() {
        return isNewproduct;
    }

    public void setIsHotsell(Integer isHotsell) {
        this.isHotsell = isHotsell;
    }

    public Integer getIsHotsell() {
        return isHotsell;
    }

    public void setIsDiscount(Integer isDiscount) {
        this.isDiscount = isDiscount;
    }

    public Integer getIsDiscount() {
        return isDiscount;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public Integer getIsDel() {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("productName", getProductName())
                .append("mallKindId", getCategoryId())
                .append("kindName", getKindName())
                .append("introduction", getIntroduction())
                .append("coverPicUrl", getCoverPicUrl())
                .append("carouselPicUrl", getCarouselPicUrl())
                .append("desc", getDesc())
                .append("vrSales", getVrSales())
                .append("sorting", getSorting())
                .append("isOnshelf", getIsOnshelf())
                .append("isNewproduct", getIsNewproduct())
                .append("isHotsell", getIsHotsell())
                .append("isDiscount", getIsDiscount())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("isDel", getIsDel())
                .toString();
    }
}
